
const config = require('../config');


const MessageTransmiter = require('../scObjs/MessageTransmitter');
const {     eth_caller_wallet,
    fn_noble_caller,
    fn_noble_receipter} = require('../wallet');

let message1 = "00000000000000040000000000000000000001a600000000000000000000000057d4eaf1091577a6b7d121202afbd2808134f117000000000000000000000000d0c3da58f55358142b8d3e06c1c30c5c6114efe8000000000000000000000000ef48c3ab7f184e469504bdbd9c07883ab4427c6600000000487039debedbf32d260137b0a6f66b90962bec777250910d253781de326a716d000000000000000000000000dc484b57a5cc0563b42c2e3d37466b14186f501b0000000000000000000000000000000000000000000000000000000000003039000000000000000000000000e97e4b1538f1401f1772779227edfa02e466e37f";
let message = '0x'+ message1;
let attestation ="0x927d746d3ad52ef089b6864d05640be0029c7ddcfe77392cd5963b9b645fe3ec59dbe7dbb223e125c1f2b5fe5f44e1eca62fd0a8780f01f2f8389357b42f43c61c98daf1a5caf7d3dea5e9aaedd973da23668812238f984089cf333f93841b667f37891dc23ae7ec1c67c50e06064b81feb80fe0a388e71bd697a206119da5a7141c";
let url = config.goerli.urls[0];

const run = async ()=>{

    const messageTransmiter = new MessageTransmiter(url,config.goerli.scAddr.messageTransmiter_ScAddr)

    let ret = await messageTransmiter.receiveMessage(eth_caller_wallet,message, attestation);
    console.log('ret: ', ret);

}

run();